/**
 * 
 */
package com.yinhai.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;
import android.widget.LinearLayout;

import com.androidquery.AQuery;
import com.yinhai.adapter.CommonADContentListAdapter;

/**
 * @author lz
 * 
 * 
 */
public class MoreAppADContentActivity extends Activity {
	public String phone;
	private ImageView news_btn;
	private AQuery aq;
	LinearLayout layoutll = null;
	MoreAppADContentActivity thisRef = null;

	CommonADContentListAdapter listadpter = null;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main_app_ad);
		Intent it = getIntent();
		thisRef = this;
		aq = new AQuery(thisRef);
		// aq.id(R.id.ll_news).backgroundColor(Color.parseColor("#ebebeb"));

		aq.id(R.id.img)
				.image(it.getExtras().get("icon").toString(), true, true);
		aq.id(R.id.tvtitle).text(it.getExtras().get("detail").toString());
		news_btn = (ImageView) findViewById(R.id.news_btn);
		news_btn.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View arg0) {
				finish();
			}
		});

		aq.id(R.id.img).clicked(new OnClickListener() {

			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent it = new Intent(thisRef, MoreAppAdViewImgActivity.class);
				it.putExtra("pic", getIntent().getExtras().get("icon")
						.toString());
				thisRef.startActivity(it);
			}
		});

	}

}
